/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ceair.flight.refund.dto.audit;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 *
 * @author youguilin
 */
public class TaxReq implements Serializable {

    private static final long serialVersionUID = 1228817940103783149L;

    /**
     * 税费id
     */
    @Min(value = 1, message = "Invalid tax item id")
    private long id;

    /**
     * 退票tkt的id
     */
    private long refundTktId;

    /**
     * 退票航段的id
     */
    @Min(value = 1, message = "Invalid segment id")
    private long refundSegId;

    /**
     * 税种(CN,YQ, ……)
     */
    @NotNull(message = "Tax type must not null")
    private String taxType;

    /**
     * 实际退的金额
     */
    private BigDecimal refundValue;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getRefundTktId() {
        return refundTktId;
    }

    public void setRefundTktId(long refundTktId) {
        this.refundTktId = refundTktId;
    }

    public long getRefundSegId() {
        return refundSegId;
    }

    public void setRefundSegId(long refundSegId) {
        this.refundSegId = refundSegId;
    }

    public String getTaxType() {
        return taxType;
    }

    public void setTaxType(String taxType) {
        this.taxType = taxType;
    }

    public BigDecimal getRefundValue() {
        return refundValue;
    }

    public void setRefundValue(BigDecimal refundValue) {
        this.refundValue = refundValue;
    }

    @Override
    public String toString() {
        return "TaxReq{" + "id=" + id + ", refundTktId=" + refundTktId + ", refundSegId=" + refundSegId + ", taxType=" + taxType + ", refundValue=" + refundValue + '}';
    }

}
